function http({
    url,
    success
}){
    wx.request({
        url,
        method: 'GET',
        success: (result)=>{
            success(result)
        }
    });
}

function handleNum(num) {
    if (num < 10) {
      num = "0" + num;
    }
    return num;
  }

module.exports = {
    http,
    handleNum
}